{extend name="apps/common/view/admin.tpl" /}
<!-- -->
{block name="header_meta"}
<title>{:lang("cms/admin/edit")}－{:lang('appName')}</title>
<meta name="referrer" content="never">
{/block}
<!-- -->
{block name="header_addon"}
<link href="{$path_root}{$path_addon}view/theme.css" rel="stylesheet">
<script>
var forumJump = function($result, $status, $xhr){
    if($result.code == 1){
        window.location.href = $result.url;
    }else{
        window.daicuo.bootstrap.dialog($result.msg);
    }
}
</script>
{/block}
<!-- -->
{block name="main"}
{:DcBuildForm([
    'name'         => 'cms/admin/edit',
    'action'       => DcUrlAddon(['module'=>'cms','controll'=>'admin','action'=>'update']),
    'method'       => 'post',
    'class'        => 'border rounded form-create p-3',
    'submit'       => lang('submit'),
    'submit_class' => 'btn btn-lg btn-purple mx-1',
    'reset'        => lang('reset'),
    'reset_class'  => 'btn btn-lg btn-secondary mx-1',
    'close'        => false,
    'disabled'     => false,
    'callback'     => 'forumJump',
    'ajax'         => true,
    'data'         => $data,
    'items'        => $fields,
    'class_button' => 'form-group text-center pt-3',
])}
{/block}